package com.moji.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品选购配置表
 * </p>
 *
 * @author ccl
 * @since 2024-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "MjProductPurchase对象", description = "产品选购配置表")
public class MjProductPurchase extends Model<MjProductPurchase> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "副标题编码")
    private String subTitleCode;

    @ApiModelProperty(value = "标题")
    private String subTitle;

    @ApiModelProperty(value = "原标题")
    private String oldSubTitle;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;
    @ApiModelProperty(value = "两年价格")
    private BigDecimal twoPrice;
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "操作人id")
    private String updateId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;

    @ApiModelProperty(value = "文件地址")
    private String url;
    @ApiModelProperty(value = "状态 0-启用 1-关闭")
    private Integer status;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
